package com.healthcloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.healthcloud.dao.SignPatientMapper;
import com.healthcloud.entity.DoctorBean;
import com.healthcloud.entity.SignPatientBean;
import com.healthcloud.service.SignPatientService;

@Service
@Transactional
public class SignPatientServiceImpl implements SignPatientService{
	@Autowired  
	private SignPatientMapper mapper;
	
	
	@Override
	public int signApply(SignPatientBean bean) {

		return mapper.signApply(bean);
	}

	@Override
	public int signAgree(SignPatientBean bean) {

		return mapper.signAgree(bean);
	}

	@Override
	public int signCancel(SignPatientBean bean) {

		return mapper.signCancel(bean);
	}

	@Override
	public List<SignPatientBean> signSearch(SignPatientBean bean,Integer pageindex,Integer pagesize) {

		return mapper.signSearch(bean,pageindex,pagesize);
	}


	@Override
	public int signSearchCount(SignPatientBean bean) {
		return mapper.signSearchCount(bean);
	}

	@Override
	public int signRefuse(SignPatientBean bean) {

		return mapper.signRefuse(bean);
	}

	@Override
	public List<DoctorBean> searchDrByHosp(DoctorBean bean) {

		return mapper.searchDrByHosp(bean);
	}

	@Override
	public int signUpdate(SignPatientBean bean) {

		return mapper.signUpdate(bean);
	}

}
